home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / rle16_sc.zip / RLE16.H < prev    next >
Text File  |  1993-05-10  |  824b  |  18 lines

  1. /* rle16.h                      */
  2. /* by Shaun Case 1991           */
  3. /* Borland C++ 2.0              */
  4. /* 16 bit header version        */
  5. /* public domain                */
  6.  
  7. #define MAX_LEN   (0x7fff)              /* maximum length for runs or sequences     */
  8. #define MAX_RUN_HEADER (0xffff)         /* bit 15 == 1 : run follows                */
  9.                                         /* bit 14 - 0  : length of run              */
  10.  
  11. #define MAX_SEQ_HEADER (0x7fff)         /* bit 15 == 0 : unencode sequence follows  */
  12.                                         /* bit 14 - 0  : length of sequence         */
  13.  
  14. #define RUN (0x8000)                    /* bit 15 == 1 : run follows                */
  15.  
  16. #define SEQ (0x0000)                    /* bit 15 == 0 : unencoded sequence follows */
  17.  
  18.